#include <CarModels.h>
Static Public Member Functions | |
| static void | initialize () |
| static osg::ref_ptr< osg::Node > | returnModel (int) |
Static Private Attributes | |
| static int | models [5] |
| static vector< osg::ref_ptr< osg::Node > > | node |
|
|
This function read the model files once and places them in the models array to be used by returnModel later. By this way a model file is only read once and all the Vehicle objects that have the same type will use the same Group with different PATs as their parents. |
|
|
returns the models Node according to the only argument |
|
|
array that holds flags for each model file, if a model file is created the appropriate place in the array becomes one which is inially 0 for all models. |
|
|
vector that holds the read models nodes whenever a new vehicle is inserted, if it is not already inserted to this vector it is done by reading the model file so later uses of the same model will simply use the same node in the vector |
1.4.6-NO